package com.ruoyi.vehicleDispatch.service;

import java.util.List;
import com.ruoyi.vehicleDispatch.domain.DispatchIntervalRule;

/**
 * 派单间隔规则Service接口
 * 
 * @author niuyi
 * @date 2025-08-19
 */
public interface IDispatchIntervalRuleService 
{
    /**
     * 查询派单间隔规则
     * 
     * @param ruleId 派单间隔规则主键
     * @return 派单间隔规则
     */
    public DispatchIntervalRule selectDispatchIntervalRuleByRuleId(Integer ruleId);

    /**
     * 查询派单间隔规则列表
     * 
     * @param dispatchIntervalRule 派单间隔规则
     * @return 派单间隔规则集合
     */
    public List<DispatchIntervalRule> selectDispatchIntervalRuleList(DispatchIntervalRule dispatchIntervalRule);

    /**
     * 新增派单间隔规则
     * 
     * @param dispatchIntervalRule 派单间隔规则
     * @return 结果
     */
    public int insertDispatchIntervalRule(DispatchIntervalRule dispatchIntervalRule);

    /**
     * 修改派单间隔规则
     * 
     * @param dispatchIntervalRule 派单间隔规则
     * @return 结果
     */
    public int updateDispatchIntervalRule(DispatchIntervalRule dispatchIntervalRule);

    /**
     * 批量删除派单间隔规则
     * 
     * @param ruleIds 需要删除的派单间隔规则主键集合
     * @return 结果
     */
    public int deleteDispatchIntervalRuleByRuleIds(Integer[] ruleIds);

    /**
     * 删除派单间隔规则信息
     * 
     * @param ruleId 派单间隔规则主键
     * @return 结果
     */
    public int deleteDispatchIntervalRuleByRuleId(Integer ruleId);
}
